package com.pz.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pz.gulimall.common.to.ShopCarItemTo;
import com.pz.gulimall.common.utils.PageUtils;
import com.pz.gulimall.common.utils.R;
import com.pz.gulimall.product.entity.ShopcarItemEntity;

import java.util.List;
import java.util.Map;

public interface ShopCarService extends IService<ShopcarItemEntity> {
    PageUtils queryPage(Map<String, Object> params);

    R queryByLoginId(String loginId);

    void saveItems(List<ShopCarItemTo> shopcarItems);

    R queryBatchByLoginIds(List<String> loginIds);

    R delItems(String loginId, List<Long> skuId);
}
